package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountOrderOutinfo;
import com.ecoolex.discount.sales.entity.DiscountOrderOutinfoExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountOrderOutinfoMapper {
    long countByExample(DiscountOrderOutinfoExample example);

    int deleteByExample(DiscountOrderOutinfoExample example);

    int deleteByPrimaryKey(Integer orderId);

    int insert(DiscountOrderOutinfo record);

    int insertSelective(@Param("record") DiscountOrderOutinfo record, @Param("selective") DiscountOrderOutinfo.Column ... selective);

    DiscountOrderOutinfo selectOneByExample(DiscountOrderOutinfoExample example);

    List<DiscountOrderOutinfo> selectByExample(DiscountOrderOutinfoExample example);

    DiscountOrderOutinfo selectByPrimaryKey(Integer orderId);

    DiscountOrderOutinfo selectByPrimaryKeyWithLogicalDelete(@Param("orderId") Integer orderId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountOrderOutinfo record, @Param("example") DiscountOrderOutinfoExample example, @Param("selective") DiscountOrderOutinfo.Column ... selective);

    int updateByExample(@Param("record") DiscountOrderOutinfo record, @Param("example") DiscountOrderOutinfoExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountOrderOutinfo record, @Param("selective") DiscountOrderOutinfo.Column ... selective);

    int updateByPrimaryKey(DiscountOrderOutinfo record);

    int batchInsert(@Param("list") List<DiscountOrderOutinfo> list);

    int batchInsertSelective(@Param("list") List<DiscountOrderOutinfo> list, @Param("selective") DiscountOrderOutinfo.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountOrderOutinfoExample example);

    int logicalDeleteByPrimaryKey(Integer orderId);
}